<?php

/**
 * 点赞
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/14
 * Time: 下午11:58
 */
class Like extends MY_Api_Controller
{
    public function index()
    {
        $uid = $this->uid;
        $bid = (int)$this->input->get_post('bid');
        $by_module = (int)$this->input->get_post('by_module');


        $this->load->service('common/service_common_like');
        $data = $this->service_common_like->index($bid, $uid, $by_module);


        $this->json_output($data['data'], $data['status']);
    }
}